﻿@model IEnumerable<CWY.Portal.Models.AccountViewModel>
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {    
        <tr>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.Firstname)</td>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.Lastname)</td>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.DisplayName)</td>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.DOB) </td>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.Email)</td>
            <td>
                @Html.DisplayFor(m => item._AccountViewModel.Password)</td>
            <td>
                @Html.CheckBoxFor(m => item._AccountViewModel.IsActiveUser)</td>
        </tr>
    }

</table>
